<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" media="screen" th:href="@{/css/styles.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/reset.css}">
    <link rel="stylesheet" th:href="@{/css/common.css}">
</head>
<body>
    <div id="particles-js">
    </div>
    <div class="loginForm">
        <form th:action="@{/admin/login}" method="post">
            <p>登录</p>
            <div style="height: 30px"></div>
            <label>
                <input type="text" name="username" class="input1" placeholder="账号">
            </label>
            <div style="height: 36px"></div>
            <label>
                <input type="password" name="password" class="input1" placeholder="密码">
            </label>
            <div style="height: 36px">
                <span th:if="${session.status}==1">账号密码有误，请重新登录</span>
                <span th:if="${session.status}==2">请先登录</span>
            </div>
            <input type="submit" value="登录" class="login">
        </form>
    </div>
    <script th:src="@{/js/particles.min.js}"></script>
    <script th:src="@{/js/app.js}"></script>
</body>
</html>